<?php
  function tvn_trainer_add_qualification($uid, $qualification){
    $query = db_insert('tvn_trainer_qualification');
    $query->fields(array('uid', 'qualification'));
    $query->values(array($uid, $qualification));
    $query->execute();
  }

  function tvn_trainer_add_payment_history($uid, $payment_information){
    $query = db_insert('tvn_trainer_payment_history');
    $query->fields(array('uid', 'payment_information', 'date'));
    $query->values(array($uid, $payment_information, time()));
    $query->execute();
  }